#include"String.h"
using namespace bit;
int main()
{
	//bit::string s("hello world");  
	//for (size_t i = 0; i < s.size(); i++)
	//{
	//	cout << s[i] << ' ';
	//}
	//cout << endl;
	//bit::string s1("hehe");
	//bit::iterator it = s1.begin();
	//while (it != s1.end())
	//{
	//	cout << *it << ' ';
	//	it++;
	//}
	//cout << endl;
	// bit:: string s3("haha");
	//for (auto& ch : s3)
	//{
	//	ch++;
	//	cout << ch << ' ';
	//}
	//cout << endl;
	//bit::string s4("li jun jie");
	//s4 += 'e';
	//bit::iterator it1 = s4.begin();
	//while (it1 != s4.end())
	//{
	//	cout << *it1 << ' ';
	//	it1++;
	//}
	//cout << endl;
	//s4 += "haha";
	//bit::iterator it2 = s4.begin();
	//while (it2 != s4.end())
	//{
	//	cout << *it2 << ' ';
	//	it2++;
	//}
	//cout << endl;
	//bit::string s5("lala");
	//s5.insert(0, 'x');
	//cout << s5.c_str() << endl;
	//cout << endl;
	//bit::string s6("bibi");
	//s6.insert(0, "haha");
	//cout << s6.c_str() << endl;
	//cout << endl;
	//bit::string s7("hello world");
	//s7.erase(2);
	//cout << s7.c_str() << endl;
	//bit::string s8("hello world");
	//cout << s8.find(' ', 6) << endl;
	//cout << s8.find("world", 7) << endl;
	//bit::string s9("https://legacy.cplusplus.com/reference/string/string/find/");
	//size_t pos1 = s9.find(':');
	//size_t pos2 = s9.find('/', pos1 + 3);
	//if (pos1 != bit::string::npos && pos2 != bit::string::npos)
	//{
	//	bit::string domain = s9.substr(pos1 + 3, pos2 - (pos1 + 3));
	//	cout << domain.c_str() << endl;
	//}
	//bit::string s10("abc");
	//cout << ("abc" == s10) << endl;
	//cout << ("abc" == "abc") << endl;
	bit::string s11 = "abc";
	cout << s11 << endl;
	getline(cin, s11, '#');
	cout << s11 << endl;
	return 0;
}